0. Compilation.
Easiest way (autogenerating project)
In the simplest form, to start working with the ANGE library, first download and unpack it in to the desired project folder. Then run the console, go to that folder and execute in the console:
premake5 <Your IDE>
This will generate a project for your IDE. Now all you have to do is run the IDE and start working on the generated project!
Examples:
Windows (Visual Studio):
premake5 vs2017
... run solution in visual studio ...
Linux (clang is default + make):
premake5 gmake2
make
Typical way [ANGE library]
(This method also requires the installation of libraries: GLFW, FreeType2, GLIMG, GLLOAD, GLM into your compiler.)
Create a project in your IDE and then add the folder containing the ANGE source files to the compiler search folder list. Then build project with linkings below:
Windows | Linux |
---|---|
GLFW, glad, libjpeg, libpng, freetype | GLFW, glad, libjpeg, libpng, freetype |
pthread, GLU, GL, rt, Xrandr, Xxf86vm, Xi, Xinerama, X11, Xcursor, dl |
Typical way [Your application]
When compiling your own project, you need to provide all paths to the ange source files and .lib files. However, linking looks like this:
Windows | Linux |
---|---|
opengl32, ange, GLFW, glad, libjpeg, libpng, freetype or sometimes (depends on IDE) just "Ange" |
AngePacked |
pthread, GLU, GL, rt, Xrandr, Xxf86vm, Xi, Xinerama, X11, Xcursor, dl |